<template>
  <div>
    <div class="page-header">
      <span class="pre-label">预报器:</span
      ><el-select
        v-model="precursor"
        placeholder="请选择预报器"
        :popper-append-to-body="false"
        @change="handleChange"
      >
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
    </div>

    <el-form :model="postrueData" label-width="100px">
      <el-row>
        <el-col>
          <el-form-item label="类型:"
            ><el-select v-model="postrueData.type">
              <el-option
                v-for="item in typeOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              ></el-option></el-select
          ></el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8"
          ><el-form-item label="初始偏置:"
            ><el-input
              v-model="postrueData.initConfig"
            ></el-input></el-form-item
        ></el-col>
        <el-col :span="6">
          <el-form-item class="left-move">
            <el-select v-model="postrueData.initConfigUnit" class="unit-class">
              <el-option></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8"
          ><el-form-item label="旋转速度:">
            <el-input v-model="postrueData.speed"></el-input> </el-form-item
        ></el-col>
        <el-col :span="6"
          ><el-form-item class="left-move">
            <el-select v-model="postrueData.speedUnit" class="unit-class-speed"
              ><el-option
                v-for="item in speedUnitOptions"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option
            ></el-select> </el-form-item
        ></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"
          ><el-form-item label="旋转偏置角:">
            <el-input v-model="postrueData.rotation"></el-input> </el-form-item
        ></el-col>
        <el-col :span="6">
          <el-form-item class="left-move">
            <el-select v-model="postrueData.rotationUnit" class="unit-class"
              ><el-option
                v-for="item in rotationUnitOptions"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              ></el-option
            ></el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  data() {
    return {
      precursor: "",
      options: [{ label: "标准", value: "标准" }],
      postrueData: {
        type: "",
        speed: "",
        speedUnit: "",
        rotation: "",
        rotationUnit: "",
        initConfig: "",
        initConfigUnit: "",
      },
      typeOptions: [
        { label: "对日自旋稳定", value: "对日自旋稳定" },
        { label: "轨道坐标系", value: "轨道坐标系" },
      ],
      rotationUnitOptions: [
        { label: "DEG", value: "deg" },
        { label: "", value: "" },
      ],
      speedUnitOptions: [
        { label: "REVS/M", value: "REVS/M" },
        { label: "", value: "" },
      ],
    };
  },
  methods: {
    handleChange() {},
  },
};
</script>
<style scoped>
.pre-label {
  padding-right: 10px;
}
</style>
